package cn.wen.forum.service;

import cn.wen.forum.common.result.JSONResult;
import cn.wen.forum.pojo.entity.Review;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName ForumService
 * @Author By wen
 * @Description
 * @Date 2023/3/7 11:15
 * @Version 1.0
 */
public interface IReviewService extends IService<Review> {


    /**
     * 获取评论list
     * @param id
     * @return
     */
    JSONResult getReviewListById(String id);

    /**
     * 提交评论
     * @param review
     * @return
     */
    JSONResult submitReview(Review review, HttpServletRequest request) throws Exception;

}
